<?php
// Auction Center PHP Script by Colton Fouse (coltonfouse@gmail.com)
include("config.php");
mysql_select_db($ItemDB, $conn);

$sql="INSERT INTO $ItemDB.items (lot, itemdesc, buyer, price, amount, notes) VALUES ('$_POST[lot]','$_POST[itemdesc]','$_POST[buyer]','$_POST[price]','$_POST[amount]','$_POST[note]')";

if (!mysql_query($sql,$conn))
  {
  die('Error: ' . mysql_error());
  }

mysql_close($conn);


echo("<html xmlns=\"http://www.w3.org/1999/xhtml\">

	<head>
		<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />
		<title>$title</title>
	</head>

	<body bgcolor=\"#ffffff\">
		<center><h1>Record Entered!</h1></center>
		<center><h2><a href=\"enter.php\">New Sale</a></h2></center>
	</body>

</html>");